/*
 * SetDialog.h
 *
 *  Created on: 2011-11-16
 *      Author: liangx
 */

#ifndef SETDIALOG_H_
#define SETDIALOG_H_
#include<QtGui/QWidget>
#include<QDialog>
#include<QLabel>
#include<QRadioButton>
#include<QPushButton>
#include<QSlider>
#include<QSpinBox>
#include"GameSetting.h"
class SetDialog:public QDialog {
	Q_OBJECT
	public:
		SetDialog(QWidget *parent=0);
		QRadioButton *btnRadioComputer;
		QRadioButton *btnRadioPlayer;
		QSlider *difficult;
		QSpinBox *sizeBox;
		QPushButton  *btnApply;
		GameSetting getSetting(){ return this->setting;}
	private slots:
		void setComputerFirst();
		void setPlayerFirst();
		void changeBoardSize(int n);
		void changeDifficultLevel(int n);
	private:
		GameSetting setting;
};

#endif /* SETDIALOG_H_ */
